<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title><?php echo html::chars(__($title)) ?></title>

	<style type="text/css">
    html, body {
        height: 100%;
        width: 100%;
        margin: 0;
        overflow: hidden;
        padding: 0;
    }
    #borderContainer { width:100%; height:100% }
	</style>
	
	<link rel="stylesheet" href='media/js/dijit/themes/claro/claro.css' media="screen"/>
	<link rel="stylesheet" href='media/css/theme.css' media="screen"/>	
	<script type="text/javascript" src='media/js/dojo/dojo.js' data-dojo-config="isDebug: true,parseOnLoad: true"/>
    <?php
    echo html_Core::script(array
    (
    	'media/js/dijit/dijit.js',
        'media/js/bustrack.js',
        "http://maps.google.com/maps/api/js?sensor=true"
    ), FALSE);
    ?>        
	<script type="text/javascript"> 
    	  dojo.require("dijit.layout.ContentPane");		
          dojo.require("dijit.layout.BorderContainer");
	  	  dojo.require("dijit.form.Button");
	  	  dojo.require('dijit.form.ComboBox');

	      dojo.require("dijit.MenuBar");
	      dojo.require("dijit.PopupMenuBarItem");
	      dojo.require("dijit.Menu");
	      dojo.require("dijit.MenuItem");
	      dojo.require("dijit.PopupMenuItem");	  	  
	</script>     
</head>
<body onload="initialize();" class="claro">	
        <?php echo html::chars(__($title)) ?>
        <div dojoType="dijit.MenuBar" id="navMenu">
            <div dojoType="dijit.PopupMenuBarItem">
                <span>
                    File
                </span>
                <div dojoType="dijit.Menu" id="fileMenu">
                    <div dojoType="dijit.MenuItem" onClick="alert('file 1')">
                        Refresh
                    </div>
                </div>
            </div>
            <div dojoType="dijit.PopupMenuBarItem">
                <span>
                    Edit
                </span>
                <div dojoType="dijit.Menu" id="editMenu">
                    <div dojoType="dijit.MenuItem" onClick="alert('edit 1')">
                        Pickup Point
                    </div>
                </div>
            </div>
        </div>              
        
        <div dojoType="dijit.layout.BorderContainer" design="sidebar" gutters="true"
        liveSplitters="true" id="borderContainer">
            <?php echo $content ?>        
        </div>                                	
    	<p class="copyright">
    		<?php echo __('Rendered in {execution_time} seconds, using {memory_usage} of memory')?><br />
    		Copyright ©2007–2008 Bustrack
    	</p>    	
	</body>
</html>